package com.jk1123.dotdog.io;

import java.io.IOException;
import java.io.InputStream;

public class HttpInputBuffer {
    private InputStream in;
    private byte[] bf=new byte[8192];
    private int limit = -1;
    protected int start;
    protected int end;

    public int read() throws IOException {
        return in.read();
    }
    public int read(byte[] b) throws IOException {

        return in.read(b);
    }
    public int read(byte[] b,int offset,int len) throws IOException {
        return in.read(b,offset,len);
    }

    /**
     * 填充缓存区
     */
    private void fill(){
        try {
            in.read(bf,start,end);






        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
